<%@ page language="java" contentType="text/html; charset=utf-8" 
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>所有用户信息</title>
</head>
<body>
	<form action="${pageContext.request.contextPath }/user/adminSelect.action" method="get">
		用户信息：
		<table width="100%" border=1>
		<tr>
			<td>用户昵称</td>
			<td>用户账号</td>
			<td>用户邮箱</td>
			<td>身份</td>
			<td>操作</td>
			<td>操作</td>
		</tr>
		<c:forEach items="${userList}" var="user" >
		<tr>
			<td>${user.name}</td>
			<td>${user.account}</td>
			<td>${user.mailbox}</td>
			<td>${user.identity}</td>
			<td><a href="${pageContext.request.contextPath }/user/userUpdateDisplay.action?userUpdate=${user.id}">修改</a></td>
			<td><a href="${pageContext.request.contextPath }/user/adminDelete.action?id=${user.id}">删除</a></td>
		</tr>
		</c:forEach>
	</table>
</form>
</body>
</html>